package com.baike.feign;

import com.baike.damian.FmLessonDTO;
import com.baike.data.Result;
import com.baike.feign.fallback.LessonServiceFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "baike-education-lesson-service",fallback = LessonServiceFeignFallback.class)//服务名找到项目
public interface LessonServiceFeign {
    @GetMapping("/lessonController/selectByLessonId/{lessonId}")//这个注解找到controller以及下面的方法
    Result<FmLessonDTO> selectByLessonId(@PathVariable("lessonId") Long lessonId);

}
